import configparser
import os

#用os模块来读取
curpath=os.path.dirname(os.path.realpath(__file__))
print(curpath)
# cfgpath=os.path.join(curpath,"config.ini")  #读取到本机的配置文件
#
#
# config = configparser.ConfigParser()
# data =config.read(cfgpath, encoding="utf-8")
# sections = config.sections()
# print(sections)
# a = config.get("mysql","password")
# print(a)


